<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>手机商城</title>
<!-- CSS -->
<!--<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">-->
<link rel="stylesheet" href="{url:#css/materialize.min.css}" />
<link rel="stylesheet" href="{url:#css/me.css}" />
<link rel="stylesheet" href="{url:#css/iconfont.css}" />
<style type="text/css">
a{
	color:black;
}
</style>
<!-- JS -->
<script src="{url:#js/jquery-1.11.3.min.js}"></script>
<script src="{url:#js/materialize.min.js}"></script>
<script src="{url:#js/home/classify_products.js}"></script>
</head>
<body>
<!-- TitleBar 开始 -->
<div class="navbar-fixed custom-navbar">
  <nav>
    <div class="nav-wrapper red accent-4 valign-wrapper custom-navbar">
      <ul class="left" id="nav-btn-left" onclick="window.history.go(-1);">
        <li><a ><i class="iconfont">&#xe63c;</i></a></li>
      </ul>
      <span class="title-bar-size center_align">订单详情</span>
      <ul class="right">
        <li><a  class="disabled" style="visibility:hidden"><i class="iconfont">&#xe63c;</i></a></li>
      </ul>
    </div>
  </nav>
</div>
<!-- TitleBar 结束 -->

<!-- 订单信息 -->
<div class="order-detail-info">
	<p>订单编号: {$order_obj['order_no']}</p>
	<p>订单状态: {echo:Common::getOrderTextStatusByNo($order_obj['order_no'])}
		{if:$order_obj['pay_status']==0}
		{else:}
			&nbsp;( {echo:Common::getPaymentnameByPId($order_obj['payment'])} )
		{/if} 
	 </p>
	<p>订单金额: ￥{$order_obj['order_amount']}</p>
	<p>运费金额: ￥{$order_obj['payable_freight']}</p>
	<p>下单时间: {$order_obj['create_time']}</p>
	{if:$order_obj['order_status'] > 1}
		<p>付款时间: {$order_obj['pay_time']}</p>
	{/if}
	{if:$order_obj['order_status']!=5 && $order_obj['order_status']!=6}
		{if:$order_obj['order_status'] > 2}
			<p>发货时间: {$order_obj['send_time']}</p>
		{/if}
		{if:$order_obj['order_status'] > 3}
			<p>签收时间: {$order_obj['completion_time']}</p>
		{/if}
	{/if}
</div>

<!-- 收货人信息 -->
<div class="order-detail-addr">
	<span class="left">收货人: {$order_obj['accept_name']}</span>
	<span class="right">{$order_obj['mobile']}</span>
	<div class="clearfix"></div>
	<span class="left">收货地址：
		{echo:Zyk_tj::zyk_info('area',$order_obj['province'],'name')}
		{echo:Zyk_tj::zyk_info('area',$order_obj['city'],'name')}
		{echo:Zyk_tj::zyk_info('area',$order_obj['county'],'name')}{$order_obj['addr']}
	</span>
	<div class="clearfix"></div>
</div>
<div class="divider"></div>
<!-- 卖家留言 -->
<div class="order-detail-addr">
	<span>买家留言:</span>
	<p  class="indigo-text darken-4" style="margin-top:5px; font-weight:500">
		{$order_obj['user_remark']}
	</p>
</div>
<div class="divider"></div>
<!-- 商品列表信息 -->
<div class="product_list">
	<ul class="mgr-0 padd-0">
		{list:items=$goods_list}
		<li><a href="{url:/mobile/product_detail/id/$item[goods_id]}">
			<div>
				<!-- 商品图片 -->
				<div class="left-align pro-img">
					<img src="{$item['img']}" width="95px" height="95px"/>
				</div>
				
				<!-- 商品详情 -->
				<div class="pro-info">
					<p>{$item['name']}</p>
					<span style="color:#FF0000; font-weight:500; font-size:1.1em;">￥{$item['sell_price']}&nbsp;&nbsp;数量：{$item['goods_nums']}</span>
					<!-- 
					<span style="color:#999999; margin-left:10px;">{$item['spec']}</span>
					-->
					<br />
					
					<span style="font-size:0.85em;">{$item['spec']}</span>
					
				</div>
			</div>
			</a>
		</li>
		<li class="dividerli">
			<div class="divider"></div>
		</li>
		{/list}
	</ul>
</div>
<div class="divider"></div>
<!-- 物流动态信息 -->
{set:$order_status = Common::getOrderStateByONo($order_obj['order_no'])}
{if:$order_status >= 3}
<div class="order-detail-log">
	<span class="left">物流单号:{$order_obj['express_no']}</span>
	<span class="right">{$order_obj['express_company']}</span>
	<div class="clearfix"></div>
	<ul>
		{list:items=$post_info}
		<li>
			<div style="vertical-align:middle">
				<div style="float:left;height:100%;"></div>
				<div style="float:left;margin-left:10px;">
				<i class="iconfont">&#xe66c;</i>
					{$item['context']}<br/>
					{$item['time']}
				</div>	
			</div>	
		</li>
		<li class="dividerli"><div class="deshed-divider"></div></li>
		{/list}
	</ul>
</div>
{/if}

</body>
</html>
